<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Encryption: Epcos Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Encryption
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_epcos.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_epcos-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Epcos Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Adapter between the <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> and the intern interface Class <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> implements the interface <a class="el" href="class_i_epcos.html" title="Interface used by company Epcos IEpcos Interface provides functions needed by the company Epcos...">IEpcos</a> and calls functions of the intern interface.  
 <a href="class_epcos.html#details">More...</a></p>

<p><code>#include &lt;Epcos.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Epcos:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_epcos.png" usemap="#Epcos_map" alt=""/>
  <map id="Epcos_map" name="Epcos_map">
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,50,24"/>
<area href="class_i_epcos.html" title="Interface used by company Epcos IEpcos Interface provides functions needed by the company Epcos..." alt="IEpcos" shape="rect" coords="60,0,110,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a54c6c5a97ad5317b0267c9895bac32fb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54c6c5a97ad5317b0267c9895bac32fb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_epcos.html#a54c6c5a97ad5317b0267c9895bac32fb">Epcos</a> ()</td></tr>
<tr class="memdesc:a54c6c5a97ad5317b0267c9895bac32fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for class <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> Instantiates an object of <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> and sets variable of type Crypter* to 0. <br/></td></tr>
<tr class="separator:a54c6c5a97ad5317b0267c9895bac32fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86fd5a588c4d01fb453f4c81eb5b307c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86fd5a588c4d01fb453f4c81eb5b307c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_epcos.html#a86fd5a588c4d01fb453f4c81eb5b307c">~Epcos</a> ()</td></tr>
<tr class="memdesc:a86fd5a588c4d01fb453f4c81eb5b307c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor for class <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> frees allocated memory of variable of type Crypter*. <br/></td></tr>
<tr class="separator:a86fd5a588c4d01fb453f4c81eb5b307c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c5ac4d7ae684d683583a9671cc11124"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_epcos.html#a5c5ac4d7ae684d683583a9671cc11124">DecryptRSA</a> (std::string const &amp;fileName)</td></tr>
<tr class="memdesc:a5c5ac4d7ae684d683583a9671cc11124"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrypts a file with RSA algorithm and stores the result in another file.  <a href="#a5c5ac4d7ae684d683583a9671cc11124"></a><br/></td></tr>
<tr class="separator:a5c5ac4d7ae684d683583a9671cc11124"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3cf1818f39b74fc4775db9226955b9e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_epcos.html#ac3cf1818f39b74fc4775db9226955b9e">EncryptRSA</a> (std::string const &amp;fileName)</td></tr>
<tr class="memdesc:ac3cf1818f39b74fc4775db9226955b9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypts a file with RSA algorithm and stores the result in another file.  <a href="#ac3cf1818f39b74fc4775db9226955b9e"></a><br/></td></tr>
<tr class="separator:ac3cf1818f39b74fc4775db9226955b9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_epcos"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_epcos')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_i_epcos.html">IEpcos</a></td></tr>
<tr class="memitem:a0c1bebd9d818c6d6d2277b12854528c6 inherit pub_methods_class_i_epcos"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c1bebd9d818c6d6d2277b12854528c6"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_epcos.html#a0c1bebd9d818c6d6d2277b12854528c6">~IEpcos</a> ()</td></tr>
<tr class="memdesc:a0c1bebd9d818c6d6d2277b12854528c6 inherit pub_methods_class_i_epcos"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor of <a class="el" href="class_i_epcos.html" title="Interface used by company Epcos IEpcos Interface provides functions needed by the company Epcos...">IEpcos</a> Pure virtual destructor so that the destructors of inherited classes are called. <br/></td></tr>
<tr class="separator:a0c1bebd9d818c6d6d2277b12854528c6 inherit pub_methods_class_i_epcos"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Adapter between the <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> and the intern interface Class <a class="el" href="class_epcos.html" title="Adapter between the Epcos and the intern interface Class Epcos implements the interface IEpcos and ca...">Epcos</a> implements the interface <a class="el" href="class_i_epcos.html" title="Interface used by company Epcos IEpcos Interface provides functions needed by the company Epcos...">IEpcos</a> and calls functions of the intern interface. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a5c5ac4d7ae684d683583a9671cc11124"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Epcos::DecryptRSA </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Decrypts a file with RSA algorithm and stores the result in another file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The file to be decrypted. Uses CrypterFactor to instantiate a RSA crypto algorithm object. Opens and reads the file and decrypts it with RSA. Result is stored in a file with the name fileName without the suffix .RSA (if it has this suffix). </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::Exception</td><td>If an error happens when opening, reading or writing a file. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_epcos.html#a8704c741fec0803e0a83fbb5db5657d4">IEpcos</a>.</p>

</div>
</div>
<a class="anchor" id="ac3cf1818f39b74fc4775db9226955b9e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Epcos::EncryptRSA </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Encrypts a file with RSA algorithm and stores the result in another file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The file to be encrypted. Uses CrypterFactor to instantiate a RSA crypto algorithm object. Opens and reads the file and encrypts it with RSA. Result is stored in a file with the name fileName plus the suffix .RSA. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::Exception</td><td>If an error happens when opening, reading or writing a file. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_epcos.html#a0bc61ba346316c837db462239bfe8b50">IEpcos</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_epcos.html">Epcos</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
